package com.unionfetch.content_home.api

import com.unionftech.common.bean.ResponseResult
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Header
import retrofit2.http.POST
import retrofit2.http.PUT

interface OpenAccountApi {
    /**
     * 开户第一步
     */
    @POST("trade/user/trader/registerAccountV0201")
    suspend fun submitBaseInfo(
        @Header("Authorization") token: String,
        @Body request: RequestBody
    ): ResponseResult<Any?>

    /**
     * RC的第二步资产评估
     */
    @PUT("trade/user/trader/assessment0201")
    suspend fun submitRCAsset(
        @Header("Authorization") token: String,
        @Body body: RequestBody
    ): ResponseResult<Any?>

    /**
     * RC 0201开户注册(改版第三步)账号设置
     */
    @PUT("trade/user/trader/setting0201")
    suspend fun submitRCAccount(
        @Header("Authorization") token: String,
        @Body body: RequestBody
    ): ResponseResult<Any?>

    /**
     * IB首开交易帐号(第三步)
     */
    @PUT("trade/user/trader/ibOpenTrade0201")
    suspend fun ibOpenTrade(
        @Header("Authorization") token: String,
        @Body body: RequestBody
    ): ResponseResult<Any?>
}